﻿namespace SmartPlant.Updater
{
    internal class UpdateRESTResult
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public int? code { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        public string data { get; set; } = default;

        /// <summary>
        /// 执行成功
        /// </summary>
        public bool succeeded { get; set; } = false;

        /// <summary>
        /// 错误信息
        /// </summary>
        public object errors { get; set; } = null;

        /// <summary>
        /// 附加数据
        /// </summary>
        public object extras { get; set; } = null;

        /// <summary>
        /// 时间戳
        /// </summary>
        public long timestamp { get; set; }

        /// <summary>
        /// 正常的提示信息
        /// </summary>
        public string msg { get; set; } = string.Empty;
    }
}
